package org.usixml.model.client.ui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class TaskModelPanel extends JPanel {
    
    private TaskModelToolBar tlbTaskModel;
        
    public TaskModelPanel() {
        initComponent();
    }
    
    private void initComponent() {
        this.setLayout(new BorderLayout());
        
        JPanel pnlTitle = new JPanel(new FlowLayout(FlowLayout.LEFT));
        pnlTitle.add(new JLabel("<html><b>Task Model</b></html>"));
        pnlTitle.setBackground(Color.LIGHT_GRAY);
        this.add(pnlTitle, BorderLayout.NORTH);
        
        JTabbedPane tbpTaskModelTabs = new JTabbedPane();
        
        JPanel pnlTaskModelTree = new JPanel(new BorderLayout());
        tbpTaskModelTabs.addTab("Tree", pnlTaskModelTree);
        
        JPanel pnlTaskModelGraphic = new JPanel(new BorderLayout());
        tlbTaskModel = new TaskModelToolBar();
        pnlTaskModelGraphic.add(tlbTaskModel, BorderLayout.NORTH);
        tbpTaskModelTabs.addTab("Graphic", pnlTaskModelGraphic);
        
        JPanel pnlTaskModelXML = new JPanel(new BorderLayout());
        tbpTaskModelTabs.addTab("UsiXML", pnlTaskModelXML);
        
        this.add(tbpTaskModelTabs, BorderLayout.CENTER);
    }
}